import request from 'utils/request'

/**
 *  会员注册
 * @param {*} data 
 * @returns 
 */
export const register = async (data) => {
    return await request({
        url:'/auth/programUser/appRegister',
        method:'post',
        params:data
    })
}

/**
 *  查询客户信息
 * @param {*} params 
 * @returns 
 */
export const queryUserInfo = (params) => {
    return request({
        url:'/auth/selectUserInfo/getUserInfo',
        method:'GET',
        params
    })
}

/**
 *  查询客户车辆信息
 * @param {*} params 
 * @returns 
 */
export const queryCarInfo = (params) =>{
    return request({
        url:'/auth/carList/carQueryByPhone',
        method:'GET',
        params
    })
}

/**
 *  查询维修单记录
 * @param {*} params 
 * @returns 
 */
export const queryFixedLix = (params) => {
    return request({
        url:'/auth/maintenance/getAllMaintenanceOrders',
        method:"GET",
        params
    })
}